<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <meta content="" name="description">
    <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name="author">
    <meta content="Hugo 0.88.1" name="generator">
    <title>Signin Template · Bootstrap v5.1</title>

    <link rel="canonical" th:href="@{https://getbootstrap.com/docs/5.1/examples/sign-in/}">


    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" th:href="@{/assets/dist/css/bootstrap.min.css}">

    <style>
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
    </style>


    <!-- Custom styles for this template -->
    <link rel="stylesheet" th:href="@{/css/signin.css}">
</head>
<body class="text-center">

<main class="form-signin">
    <img alt="" class="mb-4" height="160" th:src="@{/assets/brand/LOGO.jpg}" width="160">
    <h1 class="h3 mb-3 fw-normal">请登录</h1>
    <form method="post" th:action="@{/login}">
        <div class="form-floating">
            <input class="form-control" id="floatingInput" name="username" placeholder="username" type="text">
            <label for="floatingInput">用户名</label>
        </div>
        <div class="form-floating">
            <input class="form-control" id="floatingPassword" name="password" placeholder="Password" type="password">
            <label for="floatingPassword">密码</label>
        </div>
        <div class="checkbox mb-3">
            <label>
                <input name="rememberme" type="checkbox" value="remember-me"> 记住我
            </label>
        </div>
        <div>
            <button class="w-100 btn btn-lg btn-primary" type="submit">登录</button>
            <a th:href="@{/register}">
                <button class="w-100 btn btn-lg btn-primary" type="button">注册</button>
            </a>
        </div>
        <p th:if="${param.error}">用户名或密码错误，登录失败！</p>
    </form>
    <p class="mt-5 mb-3 text-muted">&copy; 2017–2022</p>
</main>


</body>
</html>
